<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/head.jsp"%>
<%
    //接收
    String userId = request.getParameter("userId");
    String userCode = request.getParameter("userCode");
    String username = request.getParameter("username");
    String gender = request.getParameter("gender");
    String age = request.getParameter("age");
    String phone = request.getParameter("phone");
    String address = request.getParameter("address");
    String roleName = request.getParameter("roleName");
    //存储
    request.setAttribute("userId",userId);
    request.setAttribute("userCode",userCode);
    request.setAttribute("userName",username);
    request.setAttribute("gender",gender);
    request.setAttribute("age",age);
    request.setAttribute("phone",phone);
    request.setAttribute("address",address);
    request.setAttribute("roleName",roleName);
%>
 <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户信息查看页面</span>
        </div>
        <div class="providerView">
            <p><strong>用户编号：</strong><span>${requestScope.userCode }</span></p>
            <p><strong>用户名称：</strong><span>${requestScope.userName }</span></p>
            <p><strong>用户性别：</strong>
            	<span>
            		<c:if test="${requestScope.gender == 1 }">男</c:if>
					<c:if test="${requestScope.gender == 2 }">女</c:if>
				</span>
			</p>
            <p><strong>用户年龄：</strong><span>${requestScope.age }</span></p>
            <p><strong>用户电话：</strong><span>${requestScope.phone }</span></p>
            <p><strong>用户地址：</strong><span>${requestScope.address }</span></p>
            <p><strong>用户角色：</strong><span>${requestScope.roleName}</span></p>
			<div class="providerAddBtn">
            	<input type="button" id="back" name="back" value="返回" >
            </div>
        </div>
    </div>
</section>
<%@include file="../common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/userview.js"></script>